package Java学习.面向对象.内部类;

public class static_lei {
    int a=10;
    static int b=20;
    static class Inner {
        public void show1(){
            //要访问外部类中的a，要创建对象
            static_lei l=new static_lei();
            System.out.println(l.a);
            System.out.println(b);
            System.out.println("非静态方法被调用了");
        }
        public static void show2(){
            System.out.println("静态方法被调用了");
            static_lei l=new static_lei();
            System.out.println(l.a);
            System.out.println(b);
        }
    }
}

